package com.wxtt.android.bean;

import android.os.Parcelable;

import com.fast.dev.frame.bean.I_Model;
import com.fast.dev.frame.utils.GsonUtils;

import cn.bmob.v3.BmobObject;

/**
 * 说明：实体对象规范
 * <p/>
 * 作者：fanly
 * <p/>
 * 时间：2016/1/8 13:16
 * <p/>
 * 版本：verson 1.0
 */
public abstract class Model extends BmobObject implements I_Model,Parcelable {


    @Override
    public String getType() {
        return getClass().getName();
    }

    @Override
    public <T> T toBean(String json) {
        return GsonUtils.toBean(json,getType());
    }

    @Override
    public <T> T toList(String json) {
        return GsonUtils.toList(json,getType());
    }
}
